Modularity is a design principle based on individual, self-encapsulated units. Each module is designed to serve a specific limited function. Such as a structure fosters simplicity of operation, efficiency in the testing of elements, and ease of upgrading or revision.
Modular structure is as important for designing linked HTML pages as for writing complex software. Properly done, each interlinked Web document should serve a specific purpose, and all of the pages should be related in a simple and distinct order.
Elements in a modular structure may be hierarchical or part of an array at the same level. A modular structure can be suggested by an outline or table of contents.